<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <include file="Public:jquery" />
        <include file="Public:startapp" />
        <include file="Public:startmoo" />
        <script type="text/javascript">
            // 图片预览
			function showpic(event,imgsrc){	
				var left = event.clientX+document.body.scrollLeft+20;
				var top = event.clientY+document.body.scrollTop+20;
				$("#preview").css({left:left,top:top,display:""});
				$("#pic_a1").attr("src",imgsrc);
			}
			// 取消预览
			function hiddenpic(){
				$("#preview").css({display:"none"});
			}
        </script>
    </head>
    <body>
        <include file="Public:header" />
        
        <div class="layout">
            
            <include file="Public:position" />
            
            <table class="warp" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sidebar" valign="top">
                        <include file="Public:sidebar" />
                    </td>
                    <td class="contents" valign="top">
                        
                        <div id="preview" style="position:absolute; display:none; " class="showpic"> <img name="pic_a1" id="pic_a1"></div>
						<div class="button">
							<a href="{:U('add',array('tag'=>$_GET['tag']))}" class="default_button" id="add_picture"><span></span>新增视频</a>
				    	</div>
                        <div class="a_table">
	                        <table cellspacing="1" width="100%" class="gr_list">
								<tr style="background: #f0f7ff; font-weight: bold;">
									<td width="20" height="20" class="left_text"></td>
									<td width="60" align="center" class="left_text">编号</td>
									<td align="center" class="left_text">标题名称</td>
									<td align="center" class="left_text">分类</td>
									<td align="center" class="left_text">发布人</td>
									<td width="100" align="center" class="left_text">状态</td>
									<td width="160" align="center" class="left_text">操作</td>
								</tr>
								<volist id="vo" name="list">
								<tr rel="{$vo['id']}">
									<td><input type="checkbox" name="list[]" value="{$vo.id}" /></td>
									<td align="center">{$vo['id']}</td>
									<td><a href="{:U('edit?id='.$vo['id'].'&cid='.$vo['cid'].'&tag='.$_GET['tag'])}" onmouseover="showpic(event, '__PUBLIC__/{:C('DIR_ATTCH_PATH')}/{$vo.thumb}');" onmouseout="hiddenpic();">{$vo['title']}</a></td>
									<td align="center">{$vo['cid']|getParentCategory}</td>
									<td align="center">{$vo['author']|getAuthorName}</td>
									<td align="center">{$vo['status']|getStatus}</td>
									<td align="center">
										{$vo['status']|showStatus=$vo['id']}<span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('edit?id='.$vo['id'].'&cid='.$vo['cid'].'&tag='.$_GET['tag'])}" class="edit_model">编辑</a><span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('delete?id='.$vo['id'])}" class="del_node" rel="{$vo.id}">删除</a>
									</td>
								</tr>
								</volist>
							</table>
							<div class="page">{$page}</div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
        <include file="Public:footer" />
    </body>
</html>